﻿<%@page import="cn.jdy.common.constant.GlobalConstant"%>
<%@ page language="java" contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="jdy" uri="http://www.qwe.com.cn/tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>康养旅居宝</title>
  <jsp:include page="../common/common.jsp"/>
    <style>
    .progress2{z-index: 2000}
    .mask{position: fixed;top: 0;right: 0;bottom: 0;left: 0; z-index: 1000; background-color: #2F2F2F} 
    </style>
</head>
<body>

    <img id="progressImgage" class="progress2" style="display:none" alt="" src="${path}/images/load2.gif" width="100" height="100" />
    <div id="maskOfProgressImage" class="mask" style="display:none"></div>
    <div class="main"  id="relist">
           <c:forEach  items="${dataList}" var="z"   varStatus="s">
      
                      <li class="carditem"  onclick="opnexiangxi(${z.id})">
               
                <div class="hot">
                       <c:if test="${1 eq z.rmtype}">  热门</c:if>
                         <c:if test="${2 eq z.rmtype}">  新手</c:if>
                             <c:if test="${14 eq z.rmtype}">  代理</c:if>
                </div>
                <div class="card_left">
                    <p>第${z.qihao}期</p>
                    <img src="${z.imgUrl}" alt="">
                </div>
                <div class="card_right">
                    <ul>
                        <li>会员价<span>		                 
           			<fmt:formatNumber type="number" value="${z.reduceprice}" maxFractionDigits="0"/>
						</span>元/ <small>间夜</small></li>
                        <li>限量${z.xl}份/ <span>${z.dsqd}</span>晚起订 </li>
                        <li>     
                           <c:if test="${z.isfb eq '0'}">
			                                可提前入住
			                                </c:if>
			                                   <c:if test="${z.isfb eq '1'}">
			                                不可提前入住
			                                </c:if>	
			                                </li>
                    </ul>
                    <div class="card_button"  onclick="opnexiangxi(${z.id})">
                        马上预定<br>
                   <!--      <span>剩余${z.sku}份</span> --> 
                    </div>
                </div>
            </li>
           </c:forEach>
    </div>
      <div id="productlistload"></div>
 <jsp:include page="../common/footer.jsp"/>
</body>
  <script src="${path}/js/iscroll-probe.js"></script>
 <script src="${path}/js/cardlist.js"></script>
<script>
    var swiper = new Swiper('.swiper-container', {
        pagination: {
            el: '.swiper-pagination',
        },
    });
    var banner = new Swiper('.banner', {
        pagination: {
            el: '.banner-pagination',
        },
    });
    function opnexiangxi(id){
    	location.href="${path}/productx/show-"+id+".html";
    }
</script>
</html>